package proyectobdii;

import java.util.LinkedList;

public class Diff_Tables {
    
    private DataBase databasei;
    private DataBase databaseii;
    private LinkedList<Table> commonTables;
    private LinkedList<Table> exclusiveTablesDBI;
    private LinkedList<Table> exclusiveTablesDBII;
    private LinkedList<Table> differentTables;
	
	public Diff_Tables(DataBase databasei, DataBase databaseii, LinkedList<Table> commonTables,
					LinkedList<Table> exclusiveTablesDBI, LinkedList<Table> exclusiveTablesDBII,
					LinkedList<Table> differentTables){
		this.databasei = databasei;
		this.databaseii = databaseii;
		this.commonTables = commonTables;
		this.exclusiveTablesDBI = exclusiveTablesDBI;
		this.exclusiveTablesDBII = exclusiveTablesDBII;
		this.differentTables = differentTables;
	}
	
	public String getNombreDataBase(int bd){
		if(bd == 1){
			return databasei.getHost() + "/" + databasei.getDataBaseName();
		}else{
			return databaseii.getHost() + "/" + databaseii.getDataBaseName();
		}
	}

	public LinkedList<Table> getCommonTables() {
		return commonTables;
	}

	public void setCommonTables(LinkedList<Table> commonTables) {
		this.commonTables = commonTables;
	}

	public LinkedList<Table> getExclusiveTablesDBI() {
		return exclusiveTablesDBI;
	}

	public void setExclusiveTablesDBI(LinkedList<Table> exclusiveTablesDBI) {
		this.exclusiveTablesDBI = exclusiveTablesDBI;
	}

	public LinkedList<Table> getExclusiveTablesDBII() {
		return exclusiveTablesDBII;
	}

	public void setExclusiveTablesDBII(LinkedList<Table> exclusiveTablesDBII) {
		this.exclusiveTablesDBII = exclusiveTablesDBII;
	}

	public LinkedList<Table> getDifferentTables() {
		return differentTables;
	}

	public void setDifferentTables(LinkedList<Table> differentTables) {
		this.differentTables = differentTables;
	}
	
	
}
